package com.qf.lanzhou.blog.api.pojo.entity;

import java.security.Timestamp;

/**
 * @Author jian  收藏表实体类
 * @Date 2020/12/17 15:36
 * @JDK 1.8
 * @Version 1.0
 */
public class Collect {
    //收藏表id
    private int collectId;
    //用户id
    private String userId;
    //文章id
    private String articleId;
    //收藏状态值,0,未收藏,1,已收藏
    private String collectStatus;
    //数量
    private String count;

    private Timestamp creatime;


    public Collect(){

    }

    public Collect(int collectId, String userId, String articleId, String collectStatus, String count, Timestamp creatime) {
        this.collectId = collectId;
        this.userId = userId;
        this.articleId = articleId;
        this.collectStatus = collectStatus;
        this.count = count;
        this.creatime = creatime;
    }

    public int getCollectId() {
        return collectId;
    }

    public Collect(String userId, String articleId, String collectStatus, String count, Timestamp creatime) {
        this.userId = userId;
        this.articleId = articleId;
        this.collectStatus = collectStatus;
        this.count = count;
        this.creatime = creatime;
    }


    public Timestamp getCreatime() {
        return creatime;
    }

    public void setCreatime(Timestamp creatime) {
        this.creatime = creatime;
    }

    public void setCollectId(int collectId) {
        this.collectId = collectId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getCollectStatus() {
        return collectStatus;
    }

    public void setCollectStatus(String collectStatus) {
        this.collectStatus = collectStatus;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "Collect{" +
                "collectId=" + collectId +
                ", userId='" + userId + '\'' +
                ", articleId='" + articleId + '\'' +
                ", collectStatus='" + collectStatus + '\'' +
                ", count='" + count + '\'' +
                ", creatime=" + creatime +
                '}';
    }
}
